<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\admin\controller;

class Update extends \app\AdminRest
{
    public function __construct(\think\App $app)
    {
        parent::__construct($app);
    }
    public function update()
    {
        $key = "init_all_data";
        $data = getCache($key, $this->_uniacid);
        if(!empty($data)) {
            return $this->success([]);
        }
        setCache($key, 1, 7200, $this->_uniacid);
        \app\admin\service\UpdateService::installSql($this->_uniacid);
        \app\admin\service\UpdateService::initWeiqinConfigData();
        \app\diy\service\DiyService::addDefaultDiyData($this->_uniacid);
        event("InitModelData");
        lbInitRadarMsg($this->_uniacid);
        return $this->success([]);
    }
}

?>